package dayOOP0718;

public enum  Hour {
    ONE(1), TWO(2),THREE(3),FOUR(4),FIVE(5),SIX(6),SEVEN(7),EIGHT(8),NINE(9),TEN(10),ELEVEN(11),TWELVE(12);

    int h;
    Hour(int h) {
        this.h = h;
    }
}


class Time{
    Hour h;
    int  minute;
    int seconds;
}


class TestTime{
    public static void main(String[] args) {
        Time t=new Time();
        t.h=Hour.EIGHT;
        t.minute=10;
        t.seconds=30;
    }
}